<script setup>
import {ref,watch} from 'vue'
// 引入路由
import { useRouter } from "vue-router";
//获取路由router实例
const router = useRouter()
const id = ref('')
id.value=router.params.id
</script>

<template>
    <div class="living-index-detail">
        <h1>生活指数详情页面{{ id }}</h1>
    </div>
</template>
<style scoped>
</style>